package com.fzk.blog.settings.controller;

import cn.dev33.satoken.annotation.SaCheckRole;
import cn.dev33.satoken.annotation.SaMode;
import cn.dev33.satoken.stp.StpUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author fzk
 * @date 2021-08-14 17:16
 */
@Controller
public class RouterController_settings {
    @GetMapping(path = "/settings/{path}.html")
    public String toSettings(@PathVariable("path") String path) {
        return "settings/" + path;
    }

    @GetMapping(path={"/login.html","/login"})
    public String toLogin(){
        return "login";
    }
}
